package cn.kgc.Thread.work.work06;

public class EvenThread extends Thread {
    public EvenThread(String name){
        super(name);
    }
    public void run(){
        for (int i = 1; i <100 ; i++) {
            if (i%2==0){
                System.out.println(this.getName()+"--偶数为："+i);
            }
        }
    }
}
